var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.setnpc;
            qm.forceStartQuest(31348);
            qm.dispose()
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            var e = qm.getQuest();
            qm.askYesNo("这个任务的依次对话脚本还没有修复哦。它的脚本位于： #b 脚本/任务/31348.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                qm.forceStartQuest();
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk("女神的宠物竟然变成了如此邪恶凶暴的怪物……？", 17, 0, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk("呵呵呵……这只是开始。以后的事情更值得期待。", 5, 2210009, true, true)
            } else {
                if (status === a++) {
                    qm.sendNormalTalk("#b(可疑的人的声音顺着风消失在了远方……)#k", 17, 0, true, true)
                } else {
                    if (status === a++) {
                        qm.forceCompleteQuest(31348);
                        qm.gainExp(6419211);
                        qm.forceStartQuest(31358, "on");
                        qm.warp(240092300, 2, false);
                        qm.dispose()
                    }
                }
            }
        }
    }
};